#!/bin/bash

if [ -f ./func.sh ]; then
  source ./func.sh
elif [ -f scripts/func.sh ]; then
  source scripts/func.sh
fi

new_config_tx=/tmp/channel-artifacts/businesschannel_new.tx
fetchBlock ${APP_CHANNEL} ${ORDERER0_URL} ${ORDERER0_TLS_ROOTCERT} 0 ${new_config_tx}